Tabular data generation with attention for machine learning model training system

ABSTRACT

A computing device generates synthetic tabular data. Until a convergence parameter value indicates that training of an attention generator model is complete, conditional vectors are defined; latent vectors are generated using a predefined noise distribution function; a forward propagation of an attention generator model that includes an attention model integrated with a conditional generator model is executed to generate output vectors; transformed observation vectors are selected; a forward propagation of a discriminator model is executed with the transformed observation vectors, the conditional vectors, and the output vectors to predict whether each transformed observation vector and each output vector is real or fake; a discriminator model loss value is computed based on the predictions; the discriminator model is updated using the discriminator model loss value; an attention generator model loss value is computed based on the predictions; and the attention generator model is updated using the attention generator model loss value.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application claims the benefit of and priority under 35 U.S.C. § 119(e) to U.S. Provisional Patent Application No. 63/271,054 filed on Oct. 22, 2021, the entire contents of which are hereby incorporated by reference.

BACKGROUND

Machine learning defines models that can be used to predict a target variable value that may indicate occurrence of an event, an observation classification, etc. Tabular data includes variable values for a plurality of variables, where each variable indicates a different feature value associated with the respective observation vector. Tabular data is captured and used to train a machine learning model to make the prediction. In general, the more tabular data is used to train the model, the better the expected model performance in predicting the target variable value. However, in some cases, tabular data is difficult or expensive to capture. In other cases, data privacy is an issue. Synthetic data generation provides a solution that can inexpensively create new data anonymously to improve data privacy. The created new data can be shared for analysis and modeling while providing additional privacy protections. Generating statistically realistic synthetic data poses a number of complex issues such as how to preserve a pairwise correlation between the plurality of variables.

SUMMARY

In an example embodiment, a non-transitory computer-readable medium is provided having stored thereon computer-readable instructions that, when executed by a computing device, cause the computing device to generate synthetic tabular data for use in training a machine learning model. (A) A plurality of conditional vectors is defined. The plurality of conditional vectors includes a predefined number of vectors. Each conditional vector of the plurality of conditional vectors includes a vector defined for each discrete variable of a plurality of variables. (B) A plurality of latent vectors is generated using a predefined noise distribution function. The plurality of latent vectors includes the predefined number of vectors. (C) A forward propagation of an attention generator model is executed with the defined plurality of conditional vectors and the generated plurality of noise observation vectors as input to generate a plurality of output vectors. The plurality of output vectors includes the predefined number of vectors. The attention generator model includes an attention model integrated with a conditional generator model. (D) A plurality of transformed observation vectors is selected from transformed data based on the defined plurality of conditional vectors. The plurality of transformed observation vectors includes the predefined number of vectors. Each transformed observation vector of the plurality of transformed observation vectors is a transformation of a respective observation vector of a plurality of observation vectors included in an input dataset. Each observation vector of the plurality of observation vectors includes a first value for each variable of the plurality of variables. (E) A forward propagation of a discriminator model is executed with the plurality of transformed observation vectors, the defined plurality of conditional vectors, and the generated plurality of output vectors as input to predict whether each of the plurality of transformed observation vectors and the generated plurality of output vectors is real or fake. (F) A discriminator model loss value is computed based on whether the prediction for each of the plurality of transformed observation vectors and the generated plurality of output vectors is correct. (G) The discriminator model is updated using the computed discriminator model loss value. (H) An attention generator model loss value is computed based on whether the prediction for each of the plurality of transformed observation vectors and the generated plurality of output vectors is correct. (I) The attention generator model is updated using the computed attention generator model loss value. (A) through (I) are repeated until a convergence parameter value indicates that training of the attention generator model is complete. A description of the attention generator model is output as a trained attention generator model.

In yet another example embodiment, a computing device is provided. The computing device includes, but is not limited to, a processor and a non-transitory computer-readable medium operably coupled to the processor. The computer-readable medium has instructions stored thereon that, when executed by the computing device, cause the computing device to generate synthetic tabular data for use in training a machine learning model.

In an example embodiment, a method of generating synthetic tabular data for use in training a machine learning model is provided.

Other principal features of the disclosed subject matter will become apparent to those skilled in the art upon review of the following drawings, the detailed description, and the appended claims.

BRIEF DESCRIPTION OF THE DRAWINGS

The patent or application file contains at least one drawing executed in color. Copies of this patent or patent application publication with color drawing(s) will be provided by the Office upon request and payment of the necessary fee.

Illustrative embodiments of the disclosed subject matter will hereafter be described referring to the accompanying drawings, wherein like numerals denote like elements.

FIG. 1 depicts a block diagram of a data generation training device in accordance with an illustrative embodiment.

FIGS. 2A through 2C depict a flow diagram illustrating examples of operations performed by a data generation training application of the data generation training device of FIG. 1 in accordance with an illustrative embodiment.

FIG. 3A shows a bar plot of accuracy measures that resulted from machine learning models trained using synthetic data generated using different data generation methods in accordance with an illustrative embodiment.

FIGS. 3B to 3E show heatmaps of illustrative correlation results between pairs of variables using different data generation methods in accordance with an illustrative embodiment.

FIG. 4 depicts a block diagram of a data generation device in accordance with an illustrative embodiment.

FIG. 5 depicts a flow diagram illustrating examples of operations performed by a data generation application of the data generation device of FIG. 4 in accordance with an illustrative embodiment.

FIG. 6 depicts a block diagram of a model training device in accordance with an illustrative embodiment.

FIG. 7 depicts a flow diagram illustrating examples of operations performed by a model training application of the model training device of FIG. 6 in accordance with an illustrative embodiment.

FIG. 8 depicts a block diagram of a prediction device in accordance with an illustrative embodiment.

FIG. 9 depicts a flow diagram illustrating examples of operations performed by a prediction of the prediction device of FIG. 8 in accordance with an illustrative embodiment.

DETAILED DESCRIPTION

To train machine learning models to provide accurate target variable value predictions, the synthetic data used to train the machine learning models should accurately represent the observations included in input tabular data 124 that may include continuous as well as discrete variables with widely varying statistical distributions. A data generation training application 122 generates synthetic data in which the pairwise correlation between variables is more accurate than using existing methods as shown by results described herein. Unlike existing synthetic data generation methods, data generation training application 122 provides a data generation model training process based on a combination of a generative adversarial network (GAN) with an attention model to preserve the column-wise correlation. The attention model is incorporated into the generator model and trained with the GAN.

An architecture implemented using data generation training application 122 includes a conditional generator model with the attention model and a discriminator model. The conditional generator model with the attention model solves the problem of imbalanced categorical data that is common in real tabular data. More specifically, the conditional generator model samples such that all of the categories from discrete attributes are sampled evenly during the training process so that during a fake data generation process, the real data distribution is accurately reproduced. The discriminator model classifies a data point as either real (drawn from input tabular data 124) or fake (generated). Fake is also referred to as synthetic herein. The conditional generator model with the attention model generates synthetic observation vectors that are input to the discriminator model to determine whether the observation vectors are real or fake.

Referring to FIG. 1, a block diagram of a data generation training device 100 is shown in accordance with an illustrative embodiment. Data generation training device 100 may include an input interface 102, an output interface 104, a communication interface 106, a non-transitory computer-readable medium 108, a processor 110, data generation training application 122, input tabular data 124, a generator model description 126, and synthetic tabular data 128. Data generation training application 122 trains a generator model with an attention model to create data stored in synthetic tabular data 128 from data stored in input tabular data 124. Data generation training application 122 further trains a discriminator model to determine whether an observation vector input to the discriminator model is real or fake, where the fake observations are generated by the generator model. Fewer, different, and/or additional components may be incorporated into data generation training device 100.

Input interface 102 provides an interface for receiving information from the user or another device for entry into data generation training device 100 as understood by those skilled in the art. Input interface 102 may interface with various input technologies including, but not limited to, a keyboard 112, a sensor 113, a mouse 114, a display 116, a track ball, a keypad, one or more buttons, etc. to allow the user to enter information into data generation training device 100 or to make selections presented in a user interface displayed on display 116.

The same interface may support both input interface 102 and output interface 104. For example, display 116 comprising a touch screen provides a mechanism for user input and for presentation of output to the user. Data generation training device 100 may have one or more input interfaces that use the same or a different input interface technology. The input interface technology further may be accessible by data generation training device 100 through communication interface 106.

Output interface 104 provides an interface for outputting information for review by a user of data generation training device 100 and/or for use by another application or device. For example, output interface 104 may interface with various output technologies including, but not limited to, display 116, a speaker 118, a printer 120, etc. Data generation training device 100 may have one or more output interfaces that use the same or a different output interface technology. The output interface technology further may be accessible by data generation training device 100 through communication interface 106.

Communication interface 106 provides an interface for receiving and transmitting data between devices using various protocols, transmission technologies, and media as understood by those skilled in the art. Communication interface 106 may support communication using various transmission media that may be wired and/or wireless. Data generation training device 100 may have one or more communication interfaces that use the same or a different communication interface technology. For example, data generation training device 100 may support communication using an Ethernet port, a Bluetooth antenna, a telephone jack, a USB port, etc. Data and/or messages may be transferred between data generation training device 100 and another computing device of a distributed computing system 130 using communication interface 106.

Computer-readable medium 108 is an electronic holding place or storage for information so the information can be accessed by processor 110 as understood by those skilled in the art. Computer-readable medium 108 can include, but is not limited to, any type of random access memory (RAM), any type of read only memory (ROM), any type of flash memory, etc. such as magnetic storage devices (e.g., hard disk, floppy disk, magnetic strips, . . . ), optical disks (e.g., compact disc (CD), digital versatile disc (DVD), . . . ), smart cards, flash memory devices, etc. Data generation training device 100 may have one or more computer-readable media that use the same or a different memory media technology. For example, computer-readable medium 108 may include different types of computer-readable media that may be organized hierarchically to provide efficient access to the data stored therein as understood by a person of skill in the art. As an example, a cache may be implemented in a smaller, faster memory that stores copies of data from the most frequently/recently accessed main memory locations to reduce an access latency. Data generation training device 100 also may have one or more drives that support the loading of a memory media such as a CD, DVD, an external hard drive, etc. One or more external hard drives further may be connected to data generation training device 100 using communication interface 106.

Processor 110 executes instructions as understood by those skilled in the art. The instructions may be carried out by a special purpose computer, logic circuits, or hardware circuits. Processor 110 may be implemented in hardware and/or firmware. Processor 110 executes an instruction, meaning it performs/controls the operations called for by that instruction. The term “execution” is the process of running an application or the carrying out of the operation called for by an instruction. The instructions may be written using one or more programming language, scripting language, assembly language, etc. Processor 110 operably couples with input interface 102, with output interface 104, with communication interface 106, and with computer-readable medium 108 to receive, to send, and to process information. Processor 110 may retrieve a set of instructions from a permanent memory device and copy the instructions in an executable form to a temporary memory device that is generally some form of RAM. Data generation training device 100 may include a plurality of processors that use the same or a different processing technology.

Some machine-learning approaches may be more efficiently and speedily executed and processed with machine-learning specific processors (e.g., not a generic central processing unit (CPU)). Such processors may also provide additional energy savings when compared to generic CPUs. For example, some of these processors can include a graphical processing unit, an application-specific integrated circuit, a field-programmable gate array, an artificial intelligence accelerator, a purpose-built chip architecture for machine learning, and/or some other machine-learning specific processor that implements a machine learning approach using semiconductor (e.g., silicon, gallium arsenide) devices. These processors may also be employed in heterogeneous computing architectures with a number of and a variety of different types of cores, engines, nodes, and/or layers to achieve additional various energy efficiencies, processing speed improvements, data communication speed improvements, and/or data efficiency targets and improvements throughout various parts of the system.

Data generation training application 122 may perform operations associated with training a generator model with an attention model to generate fake or synthetic observation vectors from data stored in input tabular data 124 and training a discriminator model to determine whether an input observation vector is real or fake. Some or all of the operations described herein may be embodied in data generation training application 122. The operations may be implemented using hardware, firmware, software, or any combination of these methods.

Referring to the example embodiment of FIG. 1, data generation training application 122 is implemented in software (comprised of computer-readable and/or computer-executable instructions) stored in computer-readable medium 108 and accessible by processor 110 for execution of the instructions that embody the operations of data generation training application 122. Data generation training application 122 may be written using one or more programming languages, assembly languages, scripting languages, etc. Data generation training application 122 may be integrated with other analytic tools. As an example, data generation training application 122 may be part of an integrated data analytics software application and/or software architecture such as that offered by SAS Institute Inc. of Cary, N.C., USA. Merely for illustration, data generation training application 122 may be implemented using or integrated with one or more SAS software tools such as Base SAS, SAS® Enterprise Miner™, SAS® Event Stream Processing, SAS/STAT®, SAS® High Performance Analytics Server, SAS® Visual Data Mining and Machine Learning, SAS® LASR™, SAS® In-Database Products, SAS® Scalable Performance Data Engine, SAS® Cloud Analytic Services (CAS), SAS/OR®, SAS/ETS®, SAS® Visual Analytics, SAS® Viya™, and SAS In-Memory Statistics for Hadoop®, etc. all of which are developed and provided by SAS Institute Inc. of Cary, N.C., USA. Data mining, statistical analytics, and response prediction are practically applied in a wide variety of industries to solve technical problems.

Data generation training application 122 may be implemented as a Web application. For example, data generation training application 122 may be configured to receive hypertext transport protocol (HTTP) responses and to send HTTP requests. The HTTP responses may include web pages such as hypertext markup language (HTML) documents and linked objects generated in response to the HTTP requests. Each web page may be identified by a uniform resource locator (URL) that includes the location or address of the computing device that contains the resource to be accessed in addition to the location of the resource on that computing device. The type of file or resource depends on the Internet application protocol such as the file transfer protocol, HTTP, H.323, etc. The file accessed may be a simple text file, an image file, an audio file, a video file, an executable, a common gateway interface application, a Java applet, an extensible markup language (XML) file, or any other type of file supported by HTTP.

Input tabular data 124 may include, for example, a plurality of rows and a plurality of columns. The plurality of rows may be referred to as observation vectors or records (observations), and the columns may be referred to as variables. In an alternative embodiment, input tabular data 124 may be transposed. A plurality of variables defines a vector x_(i) for each observation vector i=1, 2, . . . , N, where N is a number of the observation vectors included in input tabular data 124. Each observation vector may be defined using one or more continuous variables and/or one or more discrete variables, where N_(c) is a number of the one or more continuous variables included in input tabular data 124 for each observation vector, and N_(d) is a number of the one or more discrete variables included in input tabular data 124 for each observation vector.

Input tabular data 124 may or may not include a target variable value y_(i) for each observation vector that may indicate a label or class or other characteristic defined for a respective observation vector x_(i) for i=1, 2, . . . , N. For example, the label or classification may indicate a class for the observation vector or otherwise indicate an identification of a characteristic of the observation vector. For example, a y_(i) value may indicate the label determined for the observation vector x_(i) such as what the observation vector x_(i) in the form of text means, what the observation vector x_(i) in the form of sensor signal data does or does not represent (i.e., voice, speech, an equipment failure, an intrusion, a terrain feature, etc.), etc.

Input tabular data 124 may include additional variables that are not included in the plurality of variables. One or more variables of the plurality of variables may describe a characteristic of a physical object. For example, if input tabular data 124 include data related to operation of a vehicle, the variables may include a type of vehicle, an oil pressure, a speed, a gear indicator, a gas tank level, a tire pressure for each tire, an engine temperature, a radiator level, etc.

Sensor 113 may measure a physical quantity in an environment to which sensor 113 is associated and generate a corresponding measurement datum that may be associated with a time that the measurement datum is generated. The measurement datum may be stored in input tabular data 124. Illustrative sensors include a pressure sensor, a temperature sensor, a position or location sensor, a voltage sensor, a current sensor, a frequency sensor, a humidity sensor, a dewpoint sensor, etc. that may be mounted to various components used as part of a system.

In data science, engineering, and statistical applications, data often consists of multiple measurements (across sensors, characteristics, responses, etc.) collected across multiple time instances (patients, test subjects, etc.). These measurements may be collected in input tabular data 124 for analysis and processing or streamed to data generation training device 100 as it is generated. Input tabular data 124 may include data captured as a function of time for one or more physical objects. The data stored in input tabular data 124 may be captured at different time points, periodically, intermittently, when an event occurs, etc. Input tabular data 124 may include data captured at a high data rate such as 200 or more observation vectors per second for one or more physical objects. One or more columns of input tabular data 124 may include a time and/or date value. Input tabular data 124 may include data captured under normal and abnormal operating conditions of the physical object.

The data stored in input tabular data 124 may be received directly or indirectly from the source and may or may not be pre-processed in some manner. For example, the data may be pre-processed using an event stream processor such as the SAS® Event Stream Processing Engine (ESPE), developed and provided by SAS Institute Inc. of Cary, N.C., USA. For example, data stored in input tabular data 124 may be generated as part of the Internet of Things (IoT), where things (e.g., machines, devices, phones, sensors) can be connected to networks and the data from these things collected and processed within the things and/or external to the things before being stored in input tabular data 124. For example, the IoT can include sensors in many different devices and types of devices, and high value analytics can be applied to identify hidden relationships and drive increased efficiencies. Some of these devices may be referred to as edge devices, and may involve edge computing circuitry. These devices may provide a variety of stored or generated data, such as network data or data specific to the network devices themselves. Again, some data may be processed with an ESPE, which may reside in the cloud or in an edge device before being stored in input tabular data 124.

The data stored in input tabular data 124 may include any type of content represented in any computer-readable format such as binary, alphanumeric, numeric, string, markup language, etc. The content may include textual information, numeric information, etc. that further may be encoded using various encoding techniques as understood by a person of skill in the art.

Input tabular data 124 may be stored on computer-readable medium 108 or on one or more computer-readable media of distributed computing system 130 and accessed by data generation training device 100 using communication interface 106 and/or input interface 102. Input tabular data 124 may be stored in various compressed formats such as a coordinate format, a compressed sparse column format, a compressed sparse row format, etc. The data may be organized using delimited fields, such as comma or space separated fields, fixed width fields, using a SAS® dataset, etc. The SAS dataset may be a SAS® file stored in a SAS® library that a SAS® software tool creates and processes. The SAS dataset contains data values that are organized as a table of observation vectors (rows) and variables (columns) that can be processed by one or more SAS software tools.

Input tabular data 124 may be stored using various data structures as known to those skilled in the art including one or more files of a file system, a relational database, one or more tables of a system of tables, a structured query language database, etc. on data generation training device 100 or on distributed computing system 130.

Data generation training device 100 may coordinate access to input tabular data 124 that is distributed across distributed computing system 130 that may include one or more computing devices. For example, input tabular data 124 may be stored in a cube distributed across a grid of computers as understood by a person of skill in the art. As another example, input tabular data 124 may be stored in a multi-node Hadoop® class. For instance, Apache™ Hadoop® is an open-source software framework for distributed computing supported by the Apache Software Foundation. As another example, input tabular data 124 may be stored in a cloud of computers and accessed using cloud computing technologies, as understood by a person of skill in the art. The SAS® LASR™ Analytic Server may be used as an analytic platform to enable multiple users to concurrently access data stored in input tabular data 124. The SAS Viya open, cloud-ready, in-memory architecture also may be used as an analytic platform to enable multiple users to concurrently access data stored in input tabular data 124. SAS CAS may be used as an analytic server with associated cloud services in SAS Viya. Some systems may use SAS In-Memory Statistics for Hadoop® to read big data once and analyze it several times by persisting it in-memory for the entire session. Some systems may be of other types and configurations.

Referring to FIGS. 2A through 2C, example operations associated with data generation training application 122 are described. Additional, fewer, or different operations may be performed depending on the embodiment of data generation training application 122. The order of presentation of the operations of FIGS. 2A through 2C is not intended to be limiting. Some of the operations may not be performed in some embodiments. Although some of the operational flows are presented in sequence, the various operations may be performed in various repetitions and/or in other orders than those that are illustrated. For example, a user may execute data generation training application 122, which causes presentation of a first user interface window, which may include a plurality of menus and selectors such as drop-down menus, buttons, text boxes, hyperlinks, etc. associated with data generation training application 122 as understood by a person of skill in the art. The plurality of menus and selectors may be accessed in various orders. An indicator may indicate one or more user selections from a user interface, one or more data entries into a data field of the user interface, one or more data items read from a command line, one or more data items read from computer-readable medium 108, or one or more data items otherwise defined with one or more default values, etc. that are received as an input by data generation training application 122. Some of the operational flows further may be performed in parallel, for example, using a plurality of threads and/or a plurality of computing devices such as may be included in distributed computing system 130.

Referring to FIG. 2A, in an operation 200, a first indicator may be received that indicates input tabular data 124. For example, the first indicator indicates a location and a name of input tabular data 124. As an example, the first indicator may be received by data generation training application 122 after selection from a user interface window or after entry by a user into a user interface window. In an alternative embodiment, input tabular data 124 may not be selectable. For example, a most recently created dataset may be used automatically.

In an operation 202, a second indicator may be received that indicates the plurality of variables to use from input tabular data 124 to define observation vectors. A data type such as nominal, interval, categorical, etc. may further be defined for each variable of the plurality of variables. For example, the second indicator may indicate one or more column numbers or one or more column names with a data type defined for each. The plurality of variables are the variables that define each observation vector x_(i), where x_(i)=x_(i,j), j=1, . . . , N_(v). x_(i,j) is a j^(th) variable value for the i^(th) observation vector x_(i). A number of the plurality of variables may be indicated by N_(v). Based on the data type, each variable of the plurality of variables may be indicated as either a continuous variable or a discrete variable. The one or more continuous variables and the one or more discrete variables are each included in the plurality of variables such that N_(v)=N_(c)+N_(d).

In an operation 204, a third indicator indicates an architecture of a generator model with an attention model, referred to herein as an attention generator model, and its parameters, where the parameters include hyperparameters and model training parameters. For illustration, the attention generator model may be a neural network model to be trained to conditionally generate new observation vectors while applying an attention model, where the attention model preserves the correlation between the plurality of variables. The third indicator may be received by data generation training application 122 from a user interface window or after entry by a user into a user interface window. A default architecture may further be stored, for example, in computer-readable medium 108.

For illustration, the attention generator model architecture defines a plurality of layers and their connectivity including a type of each layer. Illustrative layers include an input layer, a convolution layer, a pooling layer, an output layer, etc. One or more hyperparameters may be defined for each layer that may vary based on a type of each layer. For example, an activation function, a number of neurons, a number of groups, a dropout rate, a height and/or a width of a convolution window, a number of filters, an initialization method for filter weights, width and height padding dimensions, a number of categories or labels or unique values of the target variable value y_(i), a detection threshold, etc. may be defined as hyperparameters for training the neural network. The architecture may define a convolutional neural network, a deep, fully connected neural network, and/or a recurrent neural network

For illustration, the attention generator model may be described based on the following layers: h ₀ =z⊕cond h ₁ =h ₀⊕ReLU(BN(FC_(|cond|+|z|→k) ₀ (h ₀))) h ₂ =h ₁⊕ReLU(BN(FC_(|cond|+|z|+k) ₀ _(→k) ₀ (h ₁))) t ₀=MultiHeadAttention(h ₂) d ₁=Dropout(t ₀ ,p=0.1) n ₁=LayerNorm(h ₂ +d ₁,ϵ=1e−5) t ₁=ReLU(FC_(|cond|+|z|+2*k) ₀ _(→8*k) ₀ (n ₁)) d ₂=Dropout(t ₁ ,p=0.1) t ₂=FC_(8*k) ₀ _(→|cond|+|z|+2*k) ₀ (d ₂) d ₃=Dropout(t ₂ ,p=0.1) n ₂=LayerNorm(n ₁ +d ₃,ϵ=1e−5) S=n ₂ +h ₂ {circumflex over (α)}_(i)=tan h(FC_(|cond|+|z|+2*k) ₀ _(→1)(s))1≤i≤N _(c) {circumflex over (β)}_(i)=gumbel_(0.2)(FC_(|cond|+|z|+2*k) ₀ _(→m) _(i) (s))1≤i≤N _(c) {circumflex over (d)} _(i)=gumbel_(0.2)(FC_(|cond|+|z|+2*k) ₀ _(→|D) _(i) _(|)(s))1≤i≤N _(d) where z indicates a batch of latent vectors input to the attention generator model, cond indicates a batch of conditional vectors input to the attention generator model, ⊕ indicates to concatenate vectors, FC_(u→w) indicates application of a linear transformation applied to the provided input parameter on a u-dimension input to obtain a w-dimension output, k₀ is a dimension value, | | indicates a number of entries in the identified vectors such as cond, z, and D_(i), BN indicates a batch normalization activation function layer applied to the provided input parameter, ReLU indicates a rectified linear activation function layer applied to the provided input parameter, MultiHeadAttention indicates a multiple head attention layer applied to the provided input parameter, for example, as described in a paper by Ashish Vaswani et al. titled Attention is all you need and presented at the 31st Conference on Neural Information Processing Systems in 2017 (Attention Paper), Dropout indicates a dropout layer applied to the provided input parameter that simulates a sparse activation from a given layer, t₀, t₁, or t₂, such that nodes are randomly dropped during training with a probability defined by a parameter p, LayerNorm indicates a normalization layer applied to the provided input parameter that normalizes activations along a feature direction, h₂+d₁ or n₁+d₃, defined by the first parameter with the second parameter E added to a denominator for numerical stability, tan h indicates a hyperbolic tangent activation function layer applied to the provided input parameter, gumbel_(0.2) (v) indicates application of a Gumbel softmax on a vector v with a parameter τ=0.2, m_(i) is a number of modes defined for an i^(th) continuous variable, and D_(i) indicates a vector of unique values of an i^(th) discrete variable. A ReLU layer is a piecewise linear function that outputs the input directly if it is positive, and outputs zero otherwise. Fully connected layers are those layers where all the inputs from one layer are connected to every activation unit of the next layer.

Layers h₀ through h₂, s, and {circumflex over (α)}_(i), {circumflex over (β)}_(i), i=1, . . . , N_(c), and {circumflex over (d)}_(i), i=1, . . . , N_(d) may be referred to as an illustrative conditional generator model that generates synthetic encoded observation vectors using latent vectors z and conditional vectors cond. Layers t₀ through n₂ may be referred to as an illustrative attention model that is integrated with the conditional generator model, where n₂ is an output of the attention model. s may be referred to as an attention vector that is a sum of h₂ and n₂.

A last layer of the attention generator model may use the Gumbel softmax function to normalize an output to a probability distribution over the possible values. {circumflex over (α)}_(i) and {circumflex over (β)}_(i) are the output values for each continuous variable, where {circumflex over (α)}_(i) is a scalar and {circumflex over (β)}_(i) is a selected mode vector, and {circumflex over (d)}_(i) is a one-hot vector representation of an output value computed for each discrete variable. The output of the attention generator model is a concatenation of {circumflex over (α)}_(i), {circumflex over (β)}_(i), i= . . . , N_(c) for each continuous variable and {circumflex over (d)}_(i), i=1, . . . , N_(d) for each discrete variable that include self-attention information due to the addition of t₀ ins from d₃. {circumflex over (α)}_(i), {circumflex over (β)}_(i), i=1, . . . , N_(c) and {circumflex over (d)}_(i), i=1, . . . , N_(d) define a transformation of the attention vector s.

The one-hot vector representation of the output value computed for a discrete variable includes a binary variable defined for each unique value for a respective discrete variable. The one-hot vector representation can be transformed to the discrete value using a lookup table. For example, for a discrete variable value that includes one of three possible color values in the associated discrete variable column, D_(i)=red, green, blue, |D_(i)|=3, and a one-hot vector representation for the discrete variable value of red would be {circumflex over (d)}_(i)=[1, 0, 0]; a one-hot vector representation for the discrete variable value of green would be {circumflex over (d)}_(i)=[0, 1, 0]; and a one-hot vector representation for the discrete variable value of blue would be {circumflex over (d)}_(i)=[0, 0, 1]. Dummy variable encoding may be used in some embodiments to reduce a length of each one-hot vector representation by one. For example, a one-hot vector representation for the discrete variable value of red may be {circumflex over (d)}_(i)=[0,0]; a one-hot vector representation for the discrete variable value of green would be {circumflex over (d)}_(i)=[1,0]; and a one-hot vector representation for the discrete variable value of blue would be {circumflex over (d)}_(i)=[0,1].

The MultiHeadAttention layer can be described as mapping a query and a set of key-value pairs to an output, where the query Q, keys K, values V, and output are vectors. The output is computed as a weighted sum of the values, where a weight assigned to each value is computed by a compatibility function of the query with the corresponding key. For illustration, a scaled-dot product function as described in section 3.2.1 of the Attention Paper may be used as the compatibility function. The MultiHeadAttention layer provides a self-attention mechanism such as that used in natural language processing to learn context information in language models. A transformer model uses self-attention layers in its encoder and decoder architecture to process an entire observation at once by relating different variables of the observation vector to compute a representation of the observation vector. The architecture of the MultiHeadAttention layer may be based on a transformer encoder model.

Multi-head attention allows the MultiHeadAttention layer to jointly attend to information from different representation subspaces at different positions where keys, values, and queries are all defined from h₂. In an illustrative embodiment, a number of heads is h=8. In an illustrative embodiment, the matrix of outputs is defined using

${t_{0} = {{At{t\left( {Q,K,V} \right)}} = {{{softmax}\left( \frac{h_{2}h_{2}^{T}}{\sqrt{d_{k}}} \right)}h_{2}}}},$ where Att indicates application of the MultiHeadAttention layer, Q=K=V=h₂, softmax is a function used to normalize the output, d_(k)=k₀ indicates a dimension of h₂ that is used as a scaling factor, and τ indicates a vector transpose.

The third indicator may further indicate other hyperparameters for the attention generator model, such as a value for τ, k₀, h, ϵ, p, as well as an initial weight vector w₀ or a methodology by which the initial weight vector w₀ is defined. In an illustrative embodiment, k₀=256. The training parameters for the attention generator model may be associated with application of gradient descent in updating gradient vectors and weight vectors each iteration, with application of forward and backward propagation, with a loss function, etc.

In an operation 208, a fourth indicator indicates an architecture of a discriminator model and its parameters, where the parameters include hyperparameters and model training parameters. For illustration, the discriminator model may be a neural network model to be trained to recognize whether an input observation vector is real or fake (synthetic). The fourth indicator may be received by data generation training application 122 from a user interface window or after entry by a user into a user interface window. A default value for the architecture may further be stored, for example, in computer-readable medium 108.

For illustration, the discriminator model architecture defines a plurality of layers and their connectivity including a type of each layer. Illustrative layers include an input layer, a convolution layer, a pooling layer, an output layer, etc. One or more hyperparameters may be defined for each layer that may vary based on a type of each layer. For example, an activation function, a number of neurons, a number of groups, a dropout rate, a height and/or a width of a convolution window, a number of filters, an initialization method for filter weights, width and height padding dimensions, a number of categories or labels or unique values of the target variable value y_(i), a detection threshold, etc. may be defined as hyperparameters for training the neural network. The architecture may define a convolutional neural network, a deep, fully connected neural network, and/or a recurrent neural network.

For illustration, the discriminator model may be described based on the following layers: h ₀ =r ₁ ⊕ . . . ⊕r _(pac)⊕cond₁⊕ . . . ⊕cond_(pac) h ₁=Dropout(leaky_(0.2)(FC_(pac|r|+pacκond|→k) ₀ (h ₀)),p=0.1) h ₂=Dropout(leaky_(0.2)(FC_(k) ₀ _(→k) ₀ (h ₁),p=0.1) D(⋅)=FC_(k) ₀ _(→1)(h ₂) where pac indicates a packing size, r_(pac) indicates a packed input observation vector that is generated by the attention generator or is a transformed observation vector read from input tabular data 124, and leaky_(0.2) (v) indicates application of a leaky ReLU activation function layer on a vector v with a leaky ratio γ=0.2. A last layer D of the discriminator model outputs a label indicating whether the respective observation vector is real or synthetic. In alternative embodiments, the discriminator model may include a fewer or a greater number of layers of different types and may not use packed vectors as input vectors.

The fourth indicator may further indicate other hyperparameters for the discriminator model, such as γ, as well as an initial weight vector w₀ or a methodology by which the initial weight vector w₀ is defined. The training parameters for the discriminator model may be associated with application of gradient descent in updating gradient vectors and weight vectors each iteration, with application of forward and backward propagation, with a loss function, etc.

In an operation 210, a fifth indicator of a noise distribution function may be received. For example, the fifth indicator indicates a name of a noise distribution function. The fifth indicator may be received by data generation training application 122 after selection from a user interface window or after entry by a user into a user interface window. A default value for the noise distribution function may further be stored, for example, in computer-readable medium 108. As an example, a noise function may be selected from “Gaussian”, “Uniform”, “Multivariate Normal”, etc. For example, a default noise function may be the Gaussian function. Of course, the noise distribution function may be labeled or selected in a variety of different manners by the user as understood by a person of skill in the art. In an alternative embodiment, the noise distribution function may not be selectable, and a single noise distribution function is implemented in data generation training application 122. For example, the Gaussian function may be used by default or without allowing a selection. With the selection of the noise distribution function, parameters associated with the selected noise function may be provided using the sixth indicator. For example, when Gaussian function is used, a mean and a variance may be provided. In an illustrative embodiment, a Gaussian function with a mean value of zero and a unit value for the variance may be defined and used by default.

In an operation 212, a sixth indicator of a batch size N_(b) may be received. In an alternative embodiment, the sixth indicator may not be received. For example, a default value may be stored, for example, in computer-readable medium 108 and used automatically. In another alternative embodiment, the value of the batch size N_(b) may not be selectable. Instead, a fixed, predefined value may be used. For illustration, a default value for the batch size N_(b) value may be N_(b)=4 though other values may be used.

In an operation 214, a seventh indicator of the packing size pac may be received. In an alternative embodiment, the seventh indicator may not be received. For example, a default value may be stored, for example, in computer-readable medium 108 and used automatically. In another alternative embodiment, the value of the packing size pac may not be selectable. Instead, a fixed, predefined value may be used. For illustration, a default value for the packing size pac may be pac=10 though other values may be used. In another illustrative embodiment, the packing size pac may not be used or may be pac=1 to use non-packed vectors as input to the discriminator model. A ratio value

$q = \frac{N_{b}}{pac}$ may defined.

In an operation 216, an eighth indicator of a convergence threshold value c_(th) may be received. In an alternative embodiment, the eighth indicator may not be received. For example, a default value may be stored, for example, in computer-readable medium 108 and used automatically. In another alternative embodiment, the value of the convergence threshold value c_(th) may not be selectable. Instead, a fixed, predefined value may be used. For illustration, a default value of the convergence threshold value c_(th) may be 0.01 though other values may be used.

In an operation 218, a ninth indicator of a maximum number of iterations I_(max) may be received. In an alternative embodiment, the ninth indicator may not be received. For example, a default value may be stored, for example, in computer-readable medium 108 and used automatically. In another alternative embodiment, the value of the maximum number of iterations I_(max) may not be selectable. Instead, a fixed, predefined value may be used. For illustration, a default value of the maximum number of iterations I_(max) may be 100 though other values may be used.

In an operation 220, an iteration counter I is initialized, for example, as I=1.

In an operation 222, the attention generator model indicated in operation 204 is initialized. For example, an attention generator parameter Φ_(G) is initialized, the weights of each node are initialized based on an initialization method or using initial values defined using the third indicator or by default, and parameters for each layer are initialized as needed.

In an operation 224, the discriminator model indicated in operation 208. For example, a discriminator parameter Φ_(D) is initialized, the weights of each node are initialized based on an initialization method or using initial values defined using the fourth indicator or by default, and parameters for each layer are initialized as needed.

In an operation 226, a number of modes N_(m) is computed by determining a number of clusters into which the discrete variable values of each observation vector included in input tabular data 124 are distributed. The number of modes N_(m) is the determined number of clusters. For illustration, a number of clusters may be determined using a Gaussian mixture model (GMM) such as that described for a GMM procedure of SAS® Visual Data Mining and Machine Learning 8.5 Procedures published Aug. 18, 2020 by SAS Institute Inc.

In an operation 228, a mode vector β_(i,j) and a probability density value α_(i,j) are computed from the observation vectors included in input tabular data 124 for each continuous variable of each observation vector included in input tabular data 124. Each mode vector includes a value for each mode, where m_(i)=N_(m), i=1, . . . , N_(c) is a number of modes and a number of entries in each mode vector. One of the values of the mode vector indicates the mode that is selected for the respective observation vector for the respective continuous variable. For continuous variables, a variational Gaussian mixture model is used to compute a probability density ρ_(k)=μ_(k)N(c_(i,j); η_(k), ϕ_(k)), k=1, . . . , m_(i) for each mode k, where ρ_(k) is a k^(th) probability density value, μ_(k) is a mean value computed for the k^(th) mode, η_(k) is a mode value computed for the k^(th) mode, ϕ_(k) is a standard deviation value computed for the k^(th) mode, and c_(i,j) indicates an i^(th) continuous variable value for a j^(th) observation vector included in input tabular data 124. For each i^(th) continuous variable value of each j^(th) observation vector, c_(i,j), the probability of that value coming from each mode m_(i) is ρ_(k)=μ_(k)N(c_(i,j); η_(k), ϕ_(k)), k=1, . . . , m_(i).

A random sample is made to select a mode s_(m) for c_(i,j) based on a comparison between the probability values ρ_(k), k=1, . . . , m_(i). For example, a random value between zero and one is drawn from a uniform random distribution function that is compared to the ranges defined by [0, ρ₁), to [ρ₁, ρ₁+ρ₂), . . . , [ρ_(m) _(i) ⁻¹, ρ_(m) _(i) ⁻¹+ρ_(m) _(i) ]. The mode s_(m) is a numerical index to the range within which the drawn random value falls. Once the mode s_(m) is selected, a one-hot vector β_(i,j) is defined for the i^(th) continuous variable value of the j^(th) observation vector to indicate the mode selected such that β_(i,j) has zero values except for a one value to indicate the selected mode. For example, if there are three modes and the second mode was selected s_(m)=2 because the drawn random value was in the range [ρ₁, ρ₁+ρ₂), β_(i,j)=[0, 1, 0]. A probability density value α_(i,j) is also computed for the i^(th) continuous variable value of the j^(th) observation vector using

$\alpha_{i,j} = {\frac{c_{i,j} - \eta_{s_{m}}}{4\phi_{s_{m}}}.}$ The mode value β_(i,j) and its associated probability density value α_(i,j) are used to represent a transformed each observation vector x_(j) so that each observation vector x_(j) can be normalized, where each x_(j), j=1, . . . , N is defined from an observation vector read from input tabular data 124. For example, the mode and its probability density can be computed for each continuous variable as described in section 4.2 of a paper by Lei Xu et al. titled Modeling Tabular Data using Conditional GAN published Oct. 28, 2019 for the 33rd Conference on Neural Information Processing Systems (NeurIPS 2019) also referred to herein as the CT-GAN paper.

In an operation 230, a probability mass function PMF_(i), i=1, . . . , N_(d) is computed from the observation vectors included in input tabular data 124 for each discrete variable of each observation vector included in input tabular data 124 such that the probability mass of each value is a logarithm of its frequency for a respective discrete variable.

In an operation 232, each observation vector included in input tabular data 124 is transformed, and processing continues in operation 234 shown referring to FIG. 2B. For example, r_(j)=T(x_(j)), j=1, . . . , N, where T indicates the transformation that indicates that each continuous variable value is replaced with its respective mode value β_(i,j), i=1, . . . , N_(c), j=1, . . . , N and probability density value α_(i,j), i=1, . . . , N_(c), j=1, . . . , N and that each discrete variable value is replaced with its respective one-hot vector representation value d_(i,j), i=1, . . . , N_(d), j=1, . . . , N so that r_(j)=α_(i,j)⊕β_(i,j)⊕ . . . ⊕α_(N) _(c) _(,j)⊕β_(N) _(c) _(,j)⊕d_(1,j)⊕ . . . ⊕d_(N) _(d) _(,j), j=1, . . . , N.

In operation 234, a batch size N_(b) number of conditional vectors cond are defined, for example, as described in Training-by-sampling of section 4.3 of the CT-GAN paper. Each conditional vector cond_(j), j=1, . . . , N_(b) is a vector of length defined by N_(d), the number of the one or more discrete variables. For example, to define each conditional vector cond_(j), N_(d) zero-filled mask vectors M_(i)=[M_(i) ^((k))]_(k=1, . . . , |D) _(i) _(|), i=1, . . . , N_(d) are defined. A variable index value i* between one and N_(d) is randomly selected with equal probability of selecting each value between one and N_(d). A variable value k* between one and |D_(i)| is randomly selected using the probability mass function computed for the i*′^(th) discrete variable k*=PMF_(i*). The k*′^(th) component of M_(i*) is set to one, or M_(i*) ^((k*))=1. The conditional vector is defined using cond_(j)=M₁⊕ . . . ⊕M_(N) _(d) . The process is repeated to define each conditional vector cond_(j) in the batch of conditional vectors cond.

In an operation 236, the noise distribution function indicated in operation 210 is sampled to generate a batch size N_(b) number of latent vectors z. A batch of latent vectors is generated by sampling the noise distribution function the batch size N_(b) number of times so that the batch of latent vectors includes the batch size N_(b) number of observation vectors. Each latent vector z_(j), j=1, . . . , N_(b) is a vector of a length defined by the user, the number of the plurality of variables that includes the continuous and discrete variables. A target variable value such as y_(j)=0, j=1, . . . , N_(b) may be defined to indicate that each respective latent vector z_(j) is a fake observation vector.

In an operation 238, the batch of latent vectors z_(j), j=1, . . . , N_(b) and the batch of conditional vectors cond_(j), j=1, . . . , N_(b) are input to the attention generator model indicated in operation 204 to compute G(z, cond), where GO indicates execution of the attention generator model with the indicated vectors to define {circumflex over (α)} and {circumflex over (β)} for each continuous variable and {circumflex over (d)} for each discrete variable. For example, the output of the attention generator model is {circumflex over (r)}_(j)={circumflex over (α)}_(1,j)⊕{circumflex over (β)}_(1,j)⊕ . . . ⊕{circumflex over (α)}_(N) _(c) _(,j)⊕{circumflex over (β)}_(N) _(c) _(,j)⊕{circumflex over (d)}_(1,j)⊕ . . . ⊕{circumflex over (d)}_(N) _(d) _(,j), j=1, . . . N_(b).

In an operation 240, packed conditional vectors may be defined. For example, cond_(k) ^((pac))=cond_(k×pac+1)⊕ . . . ⊕cond_(k×pac+pac), k=1, . . . , q as described in a paper by Zinan Lin, Ashish Khetan, Giulia Fanti, and Sewoong Oh titled Pacgan: The power of two samples in generative adversarial networks and published in In Advances in Neural Information Processing Systems, 2018 also referred to herein as the PacGAN paper and as described in Algorithm 1 of the CT-GAN paper.

In an operation 242, packed fake observations {circumflex over (r)}_(k) ^((pac)) may be defined. For example, {circumflex over (r)}_(k) ^((pac))={circumflex over (r)}cond_(k×pac+1)⊕ . . . ⊕{circumflex over (r)}_(k×pac+pac), k=1, . . . , q as described in Algorithm 1 of the CT-GAN paper.

In an operation 244, a batch size N_(b) number of observation vectors are selected from the transformed representation of each observation vector defined in operations 222 and 224 with replacement to define r_(j)=Uniform(T(x_(j))|cond_(j)), j=1, . . . , N_(b), where Uniform indicates a uniform random distribution function, T indicates the transformation of operations 222 and 224, x_(j) is an observation vector selected from input tabular data 124, (T(x_(j))|cond_(j)) indicates a transformed observation vector selected given each respective conditional vector cond_(j) so that the transformed observation vectors are sampled according to a log-frequency of each category and so all discrete values are explored evenly. The cond_(j)=M₁⊕ . . . ⊕M_(N) _(d) has a one in a single position of the vector that is associated with a specific value for one of the discrete variables. An observation vector having the specific value indicated by cond_(j) is selected from T(x_(j)). For example, a row having the selected discrete variable value k* for the selected variable index value i* is randomly selected from all of the rows that have the selected discrete variable value k* for the selected variable index value i* using a uniform random distribution. A target variable value such as y_(j)=1, j=1, . . . , N_(b) may be defined to indicate that each respective real observation vector r_(j) is a real observation vector.

In an operation 248, packed real observations r_(k) ^((pac)) may be defined. For example, r_(k) ^((pac))=r_(k×pac+1)⊕ . . . ⊕r_(k×pac+pax), k=1, . . . , q as described in Algorithm 1 of the CT-GAN paper.

In an operation 250, a discriminator loss value L_(D) is computed by executing the discriminator model with the packed real observations r_(k) ^((pac)), the packed fake observations {circumflex over (r)}_(k) ^((pac)), and the packed conditional vectors cond_(k) ^((pac)). For example,

$L_{D} = {{\frac{1}{q}{\sum\limits_{k = 1}^{q}{D\left( {{\overset{\hat{}}{r}}_{k}^{({pac})},{cond}_{k}^{({pac})}} \right)}}} - {\frac{pac}{n_{b}}{\sum\limits_{k = 1}^{q}{D\left( {r_{k}^{({pac})},{cond}_{k}^{({pac})}} \right)}}}}$ as described in Algorithm 1 of the CT-GAN paper, where D( ) indicates execution of the discriminator model with the indicated vectors as input to predict whether each observation vector is real or fake.

In an operation 252, weight values are sampled from a uniform distribution function with values between zero and one. For example, q weight values are defined by sampling using ρ_(k)=Uniform(0,1), k=1, . . . , q.

In an operation 254, weighted observation vectors are computed using the sampled weight values as described in Algorithm 1 of the CT-GAN paper. For example, {tilde over (r)}_(k) ^((pac))=ρ{tilde over (r)}_(k) ^((pac))+(1−ρ_(k))r_(k) ^((pac)), k=1, . . . , q.

In an operation 256, a gradient penalty loss value is computed. For example,

$L_{GP} = {\frac{1}{q}{\sum\limits_{k = 1}^{q}\left( {{{\nabla_{{\overset{\sim}{r}}_{k}^{({pac})}}{D\left( {{\overset{˜}{r}}_{k}^{({pac})},{cond}_{k}^{({pac})}} \right)}}}_{2} - 1} \right)^{2}}}$ as described in Algorithm 1 of the CT-GAN paper, where ∇ indicates the gradient of the discriminator model output with the indicated vectors as input, and ∥ ∥₂ indicates an L2 norm computation.

In an operation 258, the discriminator model indicated in operation 208 is updated using the discriminator and gradient penalty loss values to compute new weight values for each node. For example, Φ_(D)=Φ_(D)−0.0002×Adam(∇_(Φ) _(D) (L_(D)+10L_(GP))), where Adam indicates use of the Adam optimization algorithm with the discriminator gradients V_(Φ) _(D) to compute updated weights for each node included in the discriminator model, and 0.0002 indicates a value of a learning rate. Other optimization algorithms, such as stochastic gradient descent (SGD) and other extensions of SGD, other loss values, and other values for the learning rate may be used to update the discriminator model.

Similar to operation 234, in an operation 260, a batch size N_(b) number of conditional vectors cond are defined for a next batch.

Similar to operation 236, in an operation 262, the noise distribution function indicated in operation 210 is sampled to generate a next batch of latent vectors z.

Similar to operation 238, in an operation 264, the batch of latent vectors and the batch of conditional vectors are input to the attention generator model indicated in operation 204 to define {circumflex over (r)}_(j)={circumflex over (α)}_(1,j)⊕{circumflex over (β)}_(1,j)⊕ . . . ⊕{circumflex over (α)}_(N) _(c) _(,j)⊕{circumflex over (β)}_(N) _(c) _(,j)⊕{circumflex over (d)}_(1,j)⊕ . . . ⊕{circumflex over (d)}_(N) _(d) _(,j), j=1, . . . N_(b) for a next batch, and processing continues in operation 270 shown referring to FIG. 2C.

Similar to operation 240, in an operation 270, packed conditional vectors cond_(k) ^((pac)) are defined.

Similar to operation 242, in an operation 272, packed fake observations {circumflex over (r)}_(k) ^((pac)) are defined.

In an operation 274, a generator loss value is computed. For example,

$L_{G} = {{\frac{1}{q}{\sum\limits_{k = 1}^{q}{D\left( {{\overset{\hat{}}{r}}_{k}^{({pac})},{cond}_{k}^{({pac})}} \right)}}} - {\frac{1}{N_{b}}\sum\limits_{j = 1}^{N_{b}}}}$ CrossEntropy({circumflex over (d)}_(i*,j), M_(i*)) as described in section 4.3 and in Algorithm 1 of the CT-GAN paper, where CrossEntropy indicates a cross entropy computation, {circumflex over (d)}_(i*,j) is the i*′^(th) discrete variable value selected from d_(1,j)⊕ . . . ⊕d_(N) _(d) _(,j) defined in operation 264 for the j^(th) conditional vector of the batch, and M_(i*) is the i*′^(th) mask selected from M₁⊕ . . . ⊕M_(N) _(d) defined in operation 260. The second term is added so that the attention generator model makes {circumflex over (d)}_(i*,j)=M_(i*) so that the generated one-hot encoding vector is equal to the i*′^(th) mask. The cross entropy is a difference measured between the generated one-hot encoded vector and the selected one-hot encoded conditional mask vector.

In an operation 276, the attention generator model indicated in operation 204 is updated using the generator loss value to compute new weight values for each node. For example, Φ_(G)=Φ_(G)−0.0002×Adam(∇_(Φ) _(G) L_(G)) as described in Algorithm 1 of the CT-GAN paper though other optimization algorithms, other loss values, other values for the learning rate, etc. may be used to update the attention generator model.

In an operation 278, a convergence value c is computed. For example, the convergence parameter value c may be computed using c=L_(D)+10L_(GP)+L_(G).

In an operation 280, a determination is made concerning whether convergence has been achieved or the maximum number of iterations have been performed. If c≤c_(th) or I≥I_(max), processing continues in an operation 284. If c>c_(th) and I<I_(max), processing continues in an operation 282.

In operation 282, the iteration counter I is incremented, for example, as I=I+1, and processing continues in operation 234.

In operation 284, the trained attention generator model and/or the trained discriminator model may be output. For example, the updated attention generator model from operation 276 may be output to generator model description 126. For example, the updated discriminator model from operation 258 may be output to generator model description 126 or another computer storage location. For illustration, the trained attention generator model may be stored using the ASTORE procedure provided by SAS® Visual Data Mining and Machine Learning software. For illustration, the trained discriminator model from operation 258 may further be stored using the ASTORE procedure provided by SAS® Visual Data Mining and Machine Learning software and used to predict whether input observations are real or fake.

The synthetic observations may be output to synthetic tabular data 128. Because one-hot encoded values were computed for the continuous and discrete variables, the encoding process is reversed to transform the defined in operation 264 back to an original space defined by the observation vectors included in input tabular data 124. For example, each {circumflex over (r)}_(j)={circumflex over (α)}_(1,j)⊕{circumflex over (β)}_(1,j)⊕ . . . ⊕{circumflex over (α)}_(N) _(c) _(,j)⊕{circumflex over (β)}_(N) _(c) _(,j)⊕{circumflex over (d)}_(1,j)⊕ . . . ⊕{circumflex over (d)}_(N) _(d) _(,j), j=1, . . . N_(b) is transformed to define values for each continuous variable i=1, . . . , N_(c) and each discrete variable n=1, . . . , N_(d). For each continuous variable, mode k is defined based on an index to the value that is non-zero in {circumflex over (β)}_(i,j), i=1, . . . , N_(c) and used to compute the continuous value as c_(i,j)=4ϕ_(k){circumflex over (α)}_(i,j)+η_(k). For each discrete variable, the one-hot vector representation {circumflex over (d)}_(1,j) is used to define the discrete value, for example, using a lookup table. For example, based on the illustration above for a discrete variable value that includes one of three possible color values, red, green, blue, in the associated discrete variable column, {circumflex over (d)}_(1,j)=[1, 0, 0] is transformed to the discrete value “red”, {circumflex over (d)}_(1,j)=[0, 1, 0] is transformed to the discrete value “green”, and {circumflex over (d)}_(1,j)=[0, 0, 1] is transformed to the discrete value “blue”. The transformed synthetic observations may be output to synthetic tabular data 128.

To generate synthetic observations from the stored attention generator model, an indicator of the noise distribution function indicated in operation 210 and η_(k,i), k=1, . . . , N_(m), i=1, . . . , N_(c) and ϕ_(k,i), k=1, . . . , N_(m), i=1, . . . , N_(c) may be output, for example, to generator model description 126. The PMF_(i), i=1, . . . , N_(d) may further be output, for example, to generator model description 126. The lookup table for discrete values for each discrete variable may further be output, for example, to generator model description 126.

A performance of data generation training application 122 was compared to the existing method CTGAN described in the CT-GAN paper and to an existing method CPCTGAN described in SAS® Visual Data Mining and Machine Learning Programming Guide published Sep. 15, 2021 by SAS Institute Inc. The efficacy associated with using the synthetic data generated by data generation training application 122, CTGAN, and CPCTGAN as training data for machine learning was evaluated. A tabular dataset was split into a training dataset and a testing dataset. The training dataset was used to train five different machine learning models: a decision tree model, a linear support vector machine model, a random forest model, a logistic regression model, and a multilayer perceptron model. The training dataset was also used to generate a synthetic dataset from each of data generation training application 122, CTGAN, and CPCTGAN. The same five models were trained using each of the three generated synthetic datasets.

The testing dataset was used to generate a performance comparison between the three synthetic datasets relative to the original tabular dataset. The test was repeated using five different datasets as the tabular dataset. The datasets were selected from publicly available tabular data available at Kaggle.com. The first dataset was generated from adult income data (Adult) that included 15 columns with one target variable and 45,225 observations. The second dataset was generated from forest cover data (Forest) that included 54 columns with one target variable and 581,012 observations. The third dataset was generated from personal loan data (Loan) that included 14 columns with one target variable and 5,000 observations. The fourth dataset was generated from intrusion data (Intrusion) that included 31 columns with one target variable and 284,807 observations. The fifth dataset was generated from credit card data (CreditCard) that included 42 columns with one target variable and 311,029 observations.

Using four of the five datasets, a classification was performed. Using the fifth dataset, a regression was performed. An accuracy value, an F1-score, and an area under curve (AUC) were computed for each of the four datasets for which a classification was performed. An R2 value was computed for the fifth dataset for which a regression was performed. Table 1 below captures the comparative results for the classification tests.

TABLE 1 Dataset Method Accuracy F1-score AUC Adult Data generation 79.36 0.3637 0.6745 training application 122 CPCTGAN 75.29 0.3550 0.3738 CTGAN 70.71 0.4314 0.7371 Original 71.1 0.4885 0.704 Forest Data generation 68.11 0.6575 0.7370 training application 122 CPCTGAN 65.13 0.6304 0.6978 CTGAN 53.12 0.2332 0.5801 Original 71.16 0.6771 0.7981 Loan Data generation 76.72 0.3085 0.8599 training application 122 CPCTGAN 77.66 0.4244 0.8450 CTGAN 88.33 0.4153 0.8320 Original 88.33 0.4764 0.8548 Intrusion Data generation 91.22 0.6886 0.9508 training application 122 CPCTGAN 91.22 0.6886 0.9508 CTGAN 91.21 0.6861 0.9770 Original 91.22 0.6886 0.9508 Intrusion Data generation 78.85 0.5046 0.8056 training application 122 CPCTGAN 77.32 0.5246 0.7918 CTGAN 75.84 0.4415 0.7816 Original 81.24 0.5827 0.8298

Table 2 below captures a gap between the comparative results and the original dataset for the classification tests.

TABLE 2 Accuracy F1-score AUC Dataset Method gap gap gap Adult Data generation −8.26 0.1248 0.0294 training application 122 CPCTGAN −4.196 0.1335 0.0301 CTGAN 0.384 0.0571 −0.0332 Forest Data generation 3.046 0.0196 0.0617 training application 122 CPCTGAN 6.032 0.0467 0.1010 CTGAN 18.036 0.4439 0.2186 Loan Data generation 14.76294 0.1679 0.0059 training application 122 CPCTGAN 13.826 0.0520 0.0208 CTGAN 3.156 0.0611 0.0338 Intrusion Data generation 0.0 0.0 0.0 training application 122 CPCTGAN 0.0 0.0 0.0 CTGAN 0.014 0.0025 −0.0262 Average Data generation 2.3873 0.0781 0.0242 All training application 122 CPCTGAN 3.9155 0.0581 0.0380 CTGAN 5.3975 0.1412 0.0482

Data generation training application 122 performs better than CTGAN for all three metrics and performs better than CPCTGAN for two of the three metrics. CPCTGAN performs better based on the F1-scores but the results are very similar and much better than those that results when using CTGAN.

Table 3 below captures the comparative results for the regression test that used the fifth dataset.

TABLE 3 Method R2 Data generation  0.2995 training application 122 CPCTGAN  0.1837 CTGAN −0.1695

Data generation training application 122 resulted in a better R2 value in comparison to the other two existing methods.

Referring to FIG. 3A, a performance gap bar plot between data generation training application 122, CTGAN, and CPCTGAN is shown. A first bar 300 shows the accuracy gap using data generation training application 122. A second bar 301 shows the accuracy gap using CPCTGAN. A third bar 302 shows the accuracy gap using CTGAN. A fourth bar 303 shows the F1-score gap using data generation training application 122. A fifth bar 304 shows the F1-score gap using CPCTGAN. A sixth bar 305 shows the F1-score gap using CTGAN. A seventh bar 306 shows the AUC gap using data generation training application 122. An eighth bar 307 shows the AUC gap using CPCTGAN. A ninth bar 308 shows the AUC gap using CTGAN. Data generation training application 122 performed better based on the accuracy and AUC gap metrics compared to CPCTGAN and CTGAN. The F1-score metric that resulted using data generation training application 122 is greater than that which resulted when using CPCTGAN and CTGAN; however, the F1-score gap value itself is very small (and acceptable) using data generation training application 122 and indicates that the generated synthetic dataset has the same properties as the input five datasets.

A simulated dataset was also generated with ten numeric variables that were correlated and 10,000 observation vectors. A correlation matrix was defined for the ten variables. The correlation matrix was decomposed with a Cholesky decomposition. The dataset was generated by multiplying the Cholesky component by a random number. Synthetic data was generated from the simulated dataset using data generation training application 122, CPCTGAN, and CTGAN. A correlation was computed between the variable values of each generated synthetic dataset. Referring to FIG. 3B, a heatmap of the correlation matrix that resulted from the simulated dataset is shown. Referring to FIG. 3C, a heatmap of the synthetic data generated using data generation training application 122 is shown. Referring to FIG. 3D, a heatmap of the synthetic data generated using CPCTGAN is shown. Referring to FIG. 3E, a heatmap of the synthetic data generated using CTGAN is shown. Data generation training application 122 generated synthetic data that preserved the pairwise correlations between the ten variables better than CPCTGAN, which is also designed to preserve the pairwise correlation. In contrast, CTGAN failed to capture any pairwise correlation in the generated synthetic data.

The correlation preserving property was also computed numerically using

${{\Delta C} = \frac{{X_{r} - X_{g}}}{X_{r}}},$ where X_(r) is the correlation matrix from the simulated dataset, X_(g) is the correlation matrix of the generated synthetic data, and ∥ ∥ indicates a Frobenius norm. The numerical results are shown in Table 4 below.

TABLE 4 Method ΔC Data generation 0.2432 training application 122 CPCTGAN 0.2886 CTGAN 0.5141

Smaller values of ΔC indicate that the generated synthetic data is more similar to the simulated dataset in terms of the correlation matrix. Therefore, data generation training application 122 generated synthetic data that was more similar to the simulated dataset in terms of the correlation matrix than either CPCTGAN or CTGAN.

Referring to FIG. 4, a block diagram of a data generation device 400 is shown in accordance with an illustrative embodiment. Data generation device 400 may include a second input interface 402, a second output interface 404, a second communication interface 406, a second non-transitory computer-readable medium 408, a second processor 410, a data generation application 422, second synthetic tabular data 424, and generator model description 126. Fewer, different, and/or additional components may be incorporated into data generation device 400. Data generation device 400 and data generation training device 100 may be the same or different devices.

Second input interface 402 provides the same or similar functionality as that described with reference to input interface 102 of data generation training device 100 though referring to data generation device 400. Second output interface 404 provides the same or similar functionality as that described with reference to output interface 104 of data generation training device 100 though referring to data generation device 400. Second communication interface 406 provides the same or similar functionality as that described with reference to communication interface 106 of data generation training device 100 though referring to data generation device 400. Data and messages may be transferred between data generation device 400 and a distributed computing system 426 using second communication interface 406. Distributed computing system 130 and distributed computing system 426 may be the same or different computing systems. Second computer-readable medium 408 provides the same or similar functionality as that described with reference to computer-readable medium 108 of data generation training device 100 though referring to data generation device 400. Second processor 410 provides the same or similar functionality as that described with reference to processor 110 of data generation training device 100 though referring to data generation device 400.

Data generation application 422 performs operations associated with generating data stored in second synthetic tabular data 424 using the generator model description stored in generator model description 126. Some or all of the operations described herein may be embodied in data generation application 422. The operations may be implemented using hardware, firmware, software, or any combination of these methods.

Referring to the example embodiment of FIG. 4, data generation application 422 is implemented in software (comprised of computer-readable and/or computer-executable instructions) stored in second computer-readable medium 408 and accessible by second processor 410 for execution of the instructions that embody the operations of data generation application 422. Data generation application 422 may be written using one or more programming languages, assembly languages, scripting languages, etc. Similar to data generation training application 122, data generation application 422 may be integrated with other analytic tools. Data generation application 422 and data generation training application 122 may be the same or different applications that are integrated in various manners to generate synthetic data for use in training a machine learning model. Data generation application 422 may be implemented as a Web application.

Referring to FIG. 5, example operations of data generation application 422 are described to generate new tabular data. Additional, fewer, or different operations may be performed depending on the embodiment of data generation application 422. The order of presentation of the operations of FIG. 5 is not intended to be limiting. Although some of the operational flows are presented in sequence, the various operations may be performed in various repetitions, concurrently (in parallel, for example, using threads and/or distributed computing system 426), and/or in other orders than those that are illustrated.

In an operation 500, a tenth indicator may be received that indicates generator model description 126. For example, the tenth indicator indicates a location and a name of generator model description 126. As an example, the tenth indicator may be received by data generation application 422 after selection from a user interface window or after entry by a user into a user interface window. In an alternative embodiment, generator model description 126 may not be selectable. For example, a most recently created model configuration data may be used automatically. As another example, generator model description 126 may be provided automatically as part of integration with data generation training application 122.

In an operation 502, an attention generator model description may be read from generator model description 126 that includes the attention model, and the noise distribution function may be read from generator model description 126. In an alternative embodiment, the noise distribution function may be read from a different file or otherwise provided to data generation application 422.

In an operation 504, an attention generator model is instantiated with the attention generator model description. For example, the architecture of the attention generator model, the hyperparameters, the weight vector, and other characterizing elements are read and used to instantiate the attention generator model based on the information output from the training process in operation 284.

Similar to operation 234, in an operation 505, a conditional vector cond is defined. For example, N_(d) zero-filled mask vectors M_(i)=[M_(i) ^((k))]_(k=1, . . . ,|D) _(i) _(|), i=1, . . . , N_(d) are defined. A variable index value i* between one and N_(d) is randomly selected with equal probability of selecting each value between one and N_(d). A variable value k* between one and |D_(i)| is randomly selected using PMF_(i*) for the i*′^(th) discrete variable that may be read from generator model description 126. The k*′^(th) component of M_(i*) is set to one, or M_(i*) ^((k*))=1. The conditional vector is defined using cond_(j)=M₁⊕ . . . ⊕M_(N) _(d) . In an alternative embodiment, PMF_(i), i=1, . . . , N_(d) may be read from a different file or otherwise provided to data generation application 422 or otherwise provided to data generation application 422.

In an operation 506, a latent vector is generated using the noise distribution function.

In an operation 508, the latent vector and the conditional vector are input to the instantiated attention generator model to generate an output observation vector.

In an operation 509, the output observation vector is transformed to generate a synthetic observation vector. For example, similar to operation 284, mode k is defined based on an index to the value that is non-zero in β_(i), i=1, . . . , N_(c) and used to compute the continuous value as c_(i)=4ϕ_(k)α_(i)+η_(k), i=1, . . . , N_(c). For each discrete variable, the one-hot vector representation d_(i), i=1, . . . , N_(d) is used to define the discrete value using the lookup table. The values for η_(k) and ϕ_(k) and the lookup table may be read from generator model description 126 or another stored location or otherwise provided to data generation application 422.

In an operation 510, the synthetic observation vector may be output, for example, by storing the synthetic observation vector to second synthetic tabular data 424. In addition, or in the alternative, the synthetic observation vector may be presented on a second display 416, printed on a second printer 420, sent to another computing device using second communication interface 406, etc.

In an operation 512, a determination is made concerning whether another synthetic observation vector is to be generated. When another synthetic observation vector is to be generated, processing continues in operation 506. When synthetic observation vector generation is done, processing continues in an operation 514. For example, a predefined number of synthetic observation vectors may be generated.

In operation 514, processing stops.

Referring to FIG. 6, data generation device 400 may further include a model training application 600 and a predictive model description 602.

Referring to FIG. 7, example operations of model training application 600 are described to train a machine learning model using the synthetic observation vectors stored in synthetic tabular data 128 and/or second synthetic tabular data 424.

In an operation 700, an eleventh indicator may be received that indicates synthetic tabular data 128 and/or second synthetic tabular data 424. For example, the eleventh indicator indicates a location and a name of synthetic tabular data 128 and/or second synthetic tabular data 424. As an example, the eleventh indicator may be received by model training application 600 after selection from a user interface window or after entry by a user into a user interface window. In an alternative embodiment, synthetic tabular data 128 and/or second synthetic tabular data 424 may not be selectable. For example, a most recently created dataset may be used automatically. As another example, synthetic tabular data 128 and/or second synthetic tabular data 424 may be provided automatically as part of integration with data generation training application 122.

In an operation 702, a twelfth indicator indicates a model type. For example, the twelfth indicator indicates a name of a model type that performs prediction and/or classification. The twelfth indicator may be received by model training application 600 from a user interface window or after entry by a user into a user interface window. A default value for the model type may further be stored, for example, in second computer-readable medium 408. As an example, a model type may be selected from “SVM”, “K-Cluster”, “Neural Network”, “Logistic Regression”, “Forest”, “Gradient Boosting”, “Decision Tree”, “Factorization Machine”, etc. The model type indicated by “SVM” may refer to a support vector machine (SVM) model type. The model type indicated by “K-Cluster” may refer to a k-means clustering model type. The model type indicated by “Neural Network” may refer to a neural network model type. The model type indicated by “Logistic Regression” may refer to a logistic regression model type. The model type indicated by “Forest” may refer to a random forest model type. The model type indicated by “Gradient Boosting” may refer to a gradient boosting model type. The model type indicated by “Decision Tree” may refer to a decision tree model type. The model type indicated by “Factorization Machine” may refer to a factorization machine model type. For example, a default model type may be indicated by “Forest”. Of course, the model type may be labeled or selected in a variety of different manners by the user as understood by a person of skill in the art. In an alternative embodiment, the model type may not be selectable, and a single model type is implemented by model training application 600. For example, the model type indicated as “Forest” may be used by default or without allowing a selection.

One or more hyperparameters to use for training and validating the indicated model type and/or specified values for an automatic tuning method (autotune option) may also be indicated using the twelfth indicator. Hyperparameters define values or various options that govern a training process based on the model type. The default values of these hyperparameters may not be suitable for all applications. To reduce the effort in adjusting these hyperparameters, an automatic tuning process may be used to identify the best settings for the hyperparameters though the hyperparameters may optionally be selected as an input option by a user.

In an operation 704, a model is trained using each observation vector read from synthetic tabular data 128 and/or second synthetic tabular data 424 based on the model type and the hyperparameters indicated in operation 702. For example, the model may be trained and validated using another application that is distinct from model training application 600 or is integrated with model training application 600. For illustration, a TREESPLIT Procedure included in SAS® Visual Data Mining and Machine Learning 8.1: Statistical Procedures developed and provided by SAS Institute Inc. of Cary, N.C., USA may be used for a decision tree model type; a FACTMAC procedure included in SAS® Visual Data Mining and Machine Learning 8.1: Data Mining and Machine Learning Procedures developed and provided by SAS Institute Inc. of Cary, N.C., USA may be used for a factorization machine model type; a FOREST procedure included in SAS® Visual Data Mining and Machine Learning 8.1: Data Mining and Machine Learning Procedures developed and provided by SAS Institute Inc. of Cary, N.C., USA may be used for a random forest model type; a GRADBOOST procedure included in SAS® Visual Data Mining and Machine Learning 8.1: Data Mining and Machine Learning Procedures developed and provided by SAS Institute Inc. of Cary, N.C., USA may be used for a gradient boosting model type; a NNET procedure included in SAS® Visual Data Mining and Machine Learning 8.1: Data Mining and Machine Learning Procedures developed and provided by SAS Institute Inc. of Cary, N.C., USA may be used for a gradient boosting model type; a SVMACHINE procedure included in SAS® Visual Data Mining and Machine Learning 8.1: Data Mining and Machine Learning Procedures developed and provided by SAS Institute Inc. of Cary, N.C., USA may be used for a support vector machine model type; a HPLOGISTIC procedure included in SAS/STAT® 15.1 developed and provided by SAS Institute Inc. of Cary, N.C., USA may be used for a logistic regression model type; a KCLUS procedure included in SAS® Visual Data Mining and Machine Learning 8.1: Statistical Procedures developed and provided by SAS Institute Inc. of Cary, N.C., USA may be used for a k-means clustering model type; etc.

In an operation 706, the data that describes the trained model is stored in predictive model description 602. For illustration, the trained model may be stored using the ASTORE procedure provided by SAS® Visual Data Mining and Machine Learning software.

Referring to FIG. 8, data generation device 400 may further include a prediction application 800, input data 802, and predicted data 804.

Input tabular data 124 and input data 802 may be generated, stored, and accessed using the same or different mechanisms. Similar to input tabular data 124, input data 802 may include a plurality of rows and a plurality of columns with the plurality of rows referred to as observations or records, and the columns referred to as variables that are associated with an observation. Input data 802 may be transposed.

Similar to input tabular data 124, input data 802 may be stored on second computer-readable medium 408 or on one or more computer-readable media of distributed computing system 426 and accessed by data generation device 400 using second communication interface 406. Data stored in input data 802 may be a sensor measurement or a data communication value, for example, from a sensor 413, may be generated or captured in response to occurrence of an event or a transaction, generated by a device such as in response to an interaction by a user with the device, for example, from a second keyboard 412 or a second mouse 414, etc. The data stored in input data 802 may include any type of content represented in any computer-readable format such as binary, alphanumeric, numeric, string, markup language, etc. The content may include textual information, numeric information, etc. that further may be encoded using various encoding techniques as understood by a person of skill in the art. The data stored in input data 802 may be captured at different time points, periodically, intermittently, when an event occurs, etc. One or more columns may include a time value. Similar to input tabular data 124, data stored in input data 802 may be generated as part of the IoT, and some or all data may be pre- or post-processed by an ESPE.

Similar to input tabular data 124, input data 802 may be stored in various compressed formats such as a coordinate format, a compressed sparse column format, a compressed sparse row format, etc. Input data 802 further may be stored using various structures as known to those skilled in the art including a file system, a relational database, a system of tables, a structured query language database, etc. on data generation device 400 and/or on distributed computing system 426. Data generation device 400 may coordinate access to input data 802 that is distributed across a plurality of computing devices that make up distributed computing system 426. For example, input data 802 may be stored in a cube distributed across a grid of computers as understood by a person of skill in the art. As another example, input data 802 may be stored in a multi-node Hadoop® cluster. As another example, input data 802 may be stored in a cloud of computers and accessed using cloud computing technologies, as understood by a person of skill in the art. The SAS® LASR™ Analytic Server and/or SAS® Viya™ may be used as an analytic platform to enable multiple users to concurrently access data stored in input data 802.

Referring to FIG. 9, example operations of prediction application 800 are described to use the trained machine learning model to predict a characteristic for each observation vector included in input data 802.

In an operation 900, a thirteenth indicator may be received that indicates input data 802. For example, the thirteenth indicator indicates a location and a name of input data 802. As an example, thirteenth eleventh indicator may be received by prediction application 800 after selection from a user interface window or after entry by a user into a user interface window. In an alternative embodiment, input data 802 may not be selectable. For example, a most recently created dataset may be used automatically.

In an operation 902, a fourteenth indicator may be received that indicates predictive model description 602. For example, the fourteenth indicator indicates a location and a name of predictive model description 602. As an example, the fourteenth indicator may be received by prediction application 800 after selection from a user interface window or after entry by a user into a user interface window. In an alternative embodiment, predictive model description 602 may not be selectable. For example, a most recently created model configuration data may be used automatically. As another example, predictive model description 602 may be provided automatically as part of integration with model training application 600.

In an operation 904, a predictive model description may be read from predictive model description 602.

In an operation 906, a predictive model is instantiated with the predictive model description.

In an operation 908, an observation vector is read from input data 802.

In an operation 910, the observation vector is input to the instantiated predictive model to predict a characteristic of the observation vector.

In an operation 912, a predicted characteristic value for the read observation vector is received as an output of the instantiated model. The output may include a probability that the observation vector has one or more different possible characteristic values.

In an operation 914, the predicted characteristic value may be output, for example, by storing the predicted characteristic value with the observation vector to predicted data 804. In addition, or in the alternative, the predicted characteristic value may be presented on second display 416, printed on second printer 420, sent to another computing device using second communication interface 406, an alarm or other alert signal may be sounded through a second speaker 418, etc.

In an operation 916, a determination is made concerning whether or not input data 802 includes another observation vector. When input data 802 includes another observation vector, processing continues in an operation 918. When input data 802 does not include another observation vector, processing continues in an operation 920.

In operation 918, a next observation vector is read from input data 802, and processing continues in operation 910.

In operation 920, processing is stopped.

The word “illustrative” is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “illustrative” is not necessarily to be construed as preferred or advantageous over other aspects or designs. Further, for the purposes of this disclosure and unless otherwise specified, “a” or “an” means “one or more”. Still further, using “and” or “or” in the detailed description is intended to include “and/or” unless specifically indicated otherwise.

The foregoing description of illustrative embodiments of the disclosed subject matter has been presented for purposes of illustration and of description. It is not intended to be exhaustive or to limit the disclosed subject matter to the precise form disclosed, and modifications and variations are possible in light of the above teachings or may be acquired from practice of the disclosed subject matter. The embodiments were chosen and described in order to explain the principles of the disclosed subject matter and as practical applications of the disclosed subject matter to enable one skilled in the art to utilize the disclosed subject matter in various embodiments and with various modifications as suited to the particular use contemplated. 

What is claimed is:
 1. A non-transitory computer-readable medium having stored thereon computer-readable instructions that when executed by a computing device cause the computing device to: (A) define a plurality of conditional vectors, wherein the plurality of conditional vectors includes a predefined number of vectors, wherein each conditional vector of the plurality of conditional vectors includes a vector defined for each discrete variable of a plurality of variables; (B) generate a plurality of latent vectors using a predefined noise distribution function, wherein the plurality of latent vectors includes the predefined number of vectors; (C) execute a forward propagation of an attention generator model with the defined plurality of conditional vectors and the generated plurality of latent vectors as input to generate a plurality of output vectors, wherein the plurality of output vectors includes the predefined number of vectors, wherein the attention generator model includes an attention model integrated with a conditional generator model; (D) select a plurality of transformed observation vectors from transformed data based on the defined plurality of conditional vectors, wherein the plurality of transformed observation vectors includes the predefined number of vectors, wherein each transformed observation vector of the plurality of transformed observation vectors is a transformation of a respective observation vector of a plurality of observation vectors included in an input dataset, wherein each observation vector of the plurality of observation vectors includes a first value for each variable of the plurality of variables; (E) execute a forward propagation of a discriminator model with the plurality of transformed observation vectors, the defined plurality of conditional vectors, and the generated plurality of output vectors as input to predict whether each of the plurality of transformed observation vectors and the generated plurality of output vectors is real or fake; (F) compute a discriminator model loss value based on whether the prediction for each of the plurality of transformed observation vectors and the generated plurality of output vectors is correct; (G) update the discriminator model using the computed discriminator model loss value; (H) compute an attention generator model loss value based on whether the prediction for each of the plurality of transformed observation vectors and the generated plurality of output vectors is correct; (I) update the attention generator model using the computed attention generator model loss value; repeat (A) through (I) until a convergence parameter value indicates that training of the attention generator model is complete; and output a description of the attention generator model as a trained attention generator model.
 2. The non-transitory computer-readable medium of claim 1, wherein variable values for each respective variable of the plurality of variables are defined in a distinct column of an input dataset, wherein the plurality of observation vectors are stored in the input dataset.
 3. The non-transitory computer-readable medium of claim 2, wherein the input dataset is distributed across a plurality of computing devices.
 4. The non-transitory computer-readable medium of claim 2, wherein the input dataset is a table that includes each distinct column and a row for each observation vector of the plurality of observation vectors.
 5. The non-transitory computer-readable medium of claim 1, wherein the attention generator model includes a plurality of neural network layers, wherein a layer of the plurality of neural network layers includes an attention layer that learns context information between variables of the plurality of variables.
 6. The non-transitory computer-readable medium of claim 5, wherein the attention generator model is a transformer encoder model that relates different variables of the plurality of variables to compute a representation of an input vector as an attention output vector.
 7. The non-transitory computer-readable medium of claim 6, wherein the input vector is a concatenation of the defined plurality of conditional vectors and the generated plurality of latent vectors after application of a linear transformation from an input dimension to a predefined output dimension, application of a batch normalization activation function layer, and application of a rectified linear activation function layer.
 8. The non-transitory computer-readable medium of claim 6, wherein an attention vector is computed as a sum of the input vector and the attention output vector.
 9. The non-transitory computer-readable medium of claim 8, wherein each output vector of the generated plurality of output vectors is a transformation of the computed attention vector.
 10. The non-transitory computer-readable medium of claim 8, wherein each output vector of the generated plurality of output vectors includes a probability density value and a mode vector defined for each continuous variable of the plurality of variables and a one-hot vector representation of each discrete variable of the plurality of variables.
 11. The non-transitory computer-readable medium of claim 10, wherein the computer-readable instructions further cause the computing device to compute a number of modes included in each mode vector by determining a number of clusters into which discrete variable values of the plurality of variables are distributed, wherein the number of modes is the determined number of clusters.
 12. The non-transitory computer-readable medium of claim 10, wherein the discriminator model includes a second plurality of neural network layers, wherein an output layer of the second plurality of neural network layers assigns a label that indicates whether each of the plurality of transformed observation vectors and the generated plurality of output vectors is real or fake.
 13. The non-transitory computer-readable medium of claim 12, wherein the discriminator model loss value is computed by providing the plurality of transformed observation vectors and the defined plurality of conditional vectors to an input layer of the discriminator model and by separately providing the generated plurality of output vectors and the defined plurality of conditional vectors to the input layer of the discriminator model.
 14. The non-transitory computer-readable medium of claim 5, wherein the forward propagation of the attention generator model executes the attention generator model using current weight values defined for each node of each layer of the plurality of neural network layers.
 15. The non-transitory computer-readable medium of claim 14, wherein the update of the attention generator model computes new weight values for each node of each layer of the plurality of neural network layers.
 16. The non-transitory computer-readable medium of claim 1, wherein the convergence parameter value is a number of iterations of (I) and indicates that training of the attention generator model is complete based on the number of iterations of (I) exceeding a predefined maximum number of iterations.
 17. The non-transitory computer-readable medium of claim 1, wherein the convergence parameter value is a loss value computed from the computed discriminator loss value and the computed attention generator model loss value and indicates that training of the attention generator model is complete based on the convergence parameter value being less than or equal to a predefined convergence value.
 18. The non-transitory computer-readable medium of claim 17, wherein the convergence parameter value further includes a gradient penalty loss value computed before (G) and after (E) by executing the forward propagation of the discriminator model with weighted vectors and the defined plurality of conditional vectors, wherein the weighted vectors are computed from the plurality of transformed observation vectors and the generated plurality of output vectors.
 19. The non-transitory computer-readable medium of claim 1, wherein, after training of the attention generator model is complete, the computer-readable instructions further cause the computing device to: (J) define a conditional vector that includes the vector defined for each discrete variable of a plurality of variables; (K) generate a latent vector using the predefined noise distribution function; (L) execute the trained attention generator model with the defined conditional vector and the generated latent vector as input to generate a fake output vector; (M) transform the generated fake output vector from an output space defined by the generated plurality of output vectors to an input space defined by the plurality of observation vectors; and (N) output the transformed, generated fake output vector.
 20. The non-transitory computer-readable medium of claim 19, wherein the transformed, generated fake output vector includes a fourth value for each variable of the plurality of variables.
 21. The non-transitory computer-readable medium of claim 19, wherein the computer-readable instructions further cause the computing device to repeat (J) through (N) a plurality of times to create a synthetic dataset that includes each transformed, generated fake output vector output in (N).
 22. The non-transitory computer-readable medium of claim 21, wherein the computer-readable instructions further cause the computing device to train a machine learning model with the synthetic dataset.
 23. The non-transitory computer-readable medium of claim 22, wherein the computer-readable instructions further cause the computing device to: read a new observation vector from a dataset; input the read new observation vector to the trained machine learning model to predict a characteristic value of the read new observation vector; and output the predicted characteristic value.
 24. The non-transitory computer-readable medium of claim 1, wherein the computer-readable instructions further cause the computing device to: transform the generated plurality of output vectors from an output space defined by the generated plurality of output vectors to an input space defined by the plurality of observation vectors; and output the transformed, generated plurality of output vectors.
 25. The non-transitory computer-readable medium of claim 24, wherein each output vector of the generated plurality of output vectors includes a probability density value and a mode vector defined for each continuous variable of the plurality of variables and a one-hot vector representation of each discrete variable of the plurality of variables, wherein the probability density value and the mode vector defined for each continuous variable of the plurality of variables and the one-hot vector representation of each discrete variable of the plurality of variables define the output space.
 26. The non-transitory computer-readable medium of claim 25, wherein, before (A), the computer-readable instructions further cause the computing device to compute a number of modes included in each mode vector by determining a number of clusters into which discrete variable values of the plurality of variables are distributed, wherein the number of modes is the determined number of clusters.
 27. The non-transitory computer-readable medium of claim 1, wherein each transformed observation vector of the plurality of transformed observation vectors includes a probability density value and a mode vector defined for each continuous variable of the plurality of variables and a one-hot vector representation of each discrete variable of the plurality of variables.
 28. The non-transitory computer-readable medium of claim 1, wherein each conditional vector of the plurality of conditional vectors includes a value in a single position of the respective conditional vector that is associated with a specific value for one discrete variable of the plurality of variables, wherein each transformed observation vector of the plurality of transformed observation vectors is selected from the input tabular dataset based on the specific value.
 29. A computing device comprising: a processor; and a non-transitory computer-readable medium operably coupled to the processor, the computer-readable medium having computer-readable instructions stored thereon that, when executed by the processor, cause the computing device to (A) define a plurality of conditional vectors, wherein the plurality of conditional vectors includes a predefined number of vectors, wherein each conditional vector of the plurality of conditional vectors includes a vector defined for each discrete variable of a plurality of variables; (B) generate a plurality of latent vectors using a predefined noise distribution function, wherein the plurality of latent vectors includes the predefined number of vectors; (C) execute a forward propagation of an attention generator model with the defined plurality of conditional vectors and the generated plurality of latent vectors as input to generate a plurality of output vectors, wherein the plurality of output vectors includes the predefined number of vectors, wherein the attention generator model includes an attention model integrated with a conditional generator model; (D) select a plurality of transformed observation vectors from transformed data based on the defined plurality of conditional vectors, wherein the plurality of transformed observation vectors includes the predefined number of vectors, wherein each transformed observation vector of the plurality of transformed observation vectors is a transformation of a respective observation vector of a plurality of observation vectors included in an input dataset, wherein each observation vector of the plurality of observation vectors includes a first value for each variable of the plurality of variables; (E) execute a forward propagation of a discriminator model with the plurality of transformed observation vectors, the defined plurality of conditional vectors, and the generated plurality of output vectors as input to predict whether each of the plurality of transformed observation vectors and the generated plurality of output vectors is real or fake; (F) compute a discriminator model loss value based on whether the prediction for each of the plurality of transformed observation vectors and the generated plurality of output vectors is correct; (G) update the discriminator model using the computed discriminator model loss value; (H) compute an attention generator model loss value based on whether the prediction for each of the plurality of transformed observation vectors and the generated plurality of output vectors is correct; (I) update the attention generator model using the computed attention generator model loss value; repeat (A) through (I) until a convergence parameter value indicates that training of the attention generator model is complete; and output a description of the attention generator model as a trained attention generator model.
 30. A method of generating synthetic tabular data for use in training a machine learning model, the method comprising: (A) define a plurality of conditional vectors, wherein the plurality of conditional vectors includes a predefined number of vectors, wherein each conditional vector of the plurality of conditional vectors includes a vector defined for each discrete variable of a plurality of variables; (B) generate a plurality of latent vectors using a predefined noise distribution function, wherein the plurality of latent vectors includes the predefined number of vectors; (C) execute a forward propagation of an attention generator model with the defined plurality of conditional vectors and the generated plurality of latent vectors as input to generate a plurality of output vectors, wherein the plurality of output vectors includes the predefined number of vectors, wherein the attention generator model includes an attention model integrated with a conditional generator model; (D) select a plurality of transformed observation vectors from transformed data based on the defined plurality of conditional vectors, wherein the plurality of transformed observation vectors includes the predefined number of vectors, wherein each transformed observation vector of the plurality of transformed observation vectors is a transformation of a respective observation vector of a plurality of observation vectors included in an input dataset, wherein each observation vector of the plurality of observation vectors includes a first value for each variable of the plurality of variables; (E) execute a forward propagation of a discriminator model with the plurality of transformed observation vectors, the defined plurality of conditional vectors, and the generated plurality of output vectors as input to predict whether each of the plurality of transformed observation vectors and the generated plurality of output vectors is real or fake; (F) compute a discriminator model loss value based on whether the prediction for each of the plurality of transformed observation vectors and the generated plurality of output vectors is correct; (G) update the discriminator model using the computed discriminator model loss value; (H) compute an attention generator model loss value based on whether the prediction for each of the plurality of transformed observation vectors and the generated plurality of output vectors is correct; (I) update the attention generator model using the computed attention generator model loss value; repeat (A) through (I) until a convergence parameter value indicates that training of the attention generator model is complete; and output a description of the attention generator model as a trained attention generator model. 